home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Multimedia / MIDI / Install Flypaper Demo folder / FlyPaper 1.0.0 DEMO / FlyPaper 1.0.0 DEMO.rsrc / TEXT_7406.txt < prev    next >
Text File  |  1995-01-19  |  2KB  |  83 lines

  1. MIDI Cue Syntax
  2.  
  3. To identify simple MIDI cue descriptors,  type in the direct hexidecimal bytes you wish to search for, separated by spaces.  Spaces act as delimiters for MIDI bytes.  For example, if you wanted to identify a Sysex Start message, you would enter
  4.  
  5. F0
  6.  
  7. as the MIDI cue description.
  8.  
  9. When typing in the MIDI information that you wish to identify as a cue, Flypaper allows for some special symbols that make your MIDI cue definitions more flexible.
  10.  
  11. @ Symbol
  12. Use the @ symbol as a "wild card" search character that can be anything.  For instance, if you wish to identify note-on messages on any channel, not just channel 1 (e.g. "90") you would enter:
  13.  
  14.     9@
  15.  
  16. as the MIDI  cue descriptor.
  17.  
  18. $ Symbol
  19. Use the $ symbol to store a 4-bit value into a Flypaper user variable.  Sixteen user variables are available, $0 through $F.  Don't confuse the $ symbol with "hexidecimal."  Flypaper treats all numbers entered in the Add/Edit Cue dialog as hexidecimal values. 
  20.  
  21. For example, to store the hi-byte of the key number in a note-on message and the low-byte of the key number, enter
  22.  
  23.     90 $0$1
  24.  
  25. as the MIDI cue descriptor.  If you also wanted to capture key velocity information to user variables $2 and $3, type
  26.  
  27.     90 $0$1 $2$3
  28.  
  29. # Symbol
  30. Use the # symbol to refer to the current Session Definition's channel.
  31.  
  32. Operators
  33.  
  34. The following symbols create an arithmetic operation :
  35.  
  36. +  Symbol
  37. Adds two values together
  38.  
  39. - Symbol
  40. Subtracts two values
  41.  
  42. * Symbol
  43. Multiplies two values
  44.  
  45. / Symbol
  46. Divides two values
  47.  
  48. >
  49. Bitwise SHIFT RIGHT on two values
  50.  
  51. <
  52. Bitwise SHIFT LEFT on two values
  53.  
  54. &
  55. Bitwise AND on two values
  56.  
  57. |
  58. Bitwise OR on two values
  59.  
  60. For example, perhaps you want to transpose an incoming note on message.  The Session Definition cue descriptor would be:
  61.     
  62.     90 $0$1 $2$3
  63.  
  64. and the Session Definition reaction cue descriptor could be:
  65.  
  66.     90 $0$1+7 $2$3
  67.  
  68.  using the arithmetic operator "+" to add seven (a perfect fifth) to every note on message's note number.
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.